package edu.sctu.wangxiaoqiang.day20150525.textone;

import com.sun.org.apache.xerces.internal.dom.PSVIAttrNSImpl;

/**
 * Created by user25 on 2015/5/25.
 */
public class TextMain {

    public static void main(String[] args) {

        TextA textA = new TextA();
        TextA textA1 = new TextB();
        TextB textB = new TextB();
        TextC textC = new TextC();
        TextD textD = new TextD();

        System.out.println(textA.get(textA));
        System.out.println(textA.get(textD));
        System.out.println(textA1.get(textA));
        System.out.println(textB.get(textC));
        System.out.println(textD.get(textB));

    }
}
